package com.hhl.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.hhl.mapper.TestMapper;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;

@RestController
@Api(tags = "test")
@Slf4j
public class DockerController {
	
	@Autowired
	TestMapper testMapper;
	
    @GetMapping("/")
    @ApiOperation("首页")
    public String index() {
    	log.info("Hello Docker!");
    	log.debug("Hello Docker!2");
        return "Hello Docker!";
    }
    
    @GetMapping("test")
    @ApiOperation("首页2")
    public Object index2() {
    	log.debug("获取商户信息");
    	return testMapper.list();
    }
}